<?php
namespace app\common\config\validate;


use think\Validate;

class ConfigRegionValidate extends Validate
{
    protected $rule = [
        'id' => ['require', 'gt:0'],
        'shortname' => ['require',],
    ];

    protected $message = [
        'id.require' => '参数错误',
        'id.gt' => '参数错误',
        'shortname.require' => '地区名称不能为空',
    ];

    protected $scene = [
        'create' => ['title'],
        'edit' => ['id', 'title'],
        'delete' => ['id'],
    ];
}